// 这个文件专门用来写dispatch
import axios from "axios"
export let setName = (data)=>{
    return {
        type:"setName",
        payload:data
    }
}
export let getList = ()=>{
  return (dispatch)=>{
        axios.get("https://baojia.chelun.com/v2-car-getMasterBrandList.html").then(res=>{
            dispatch({
                type:"getList",
                payload:res.data
            })
        })
  }
}